﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="产生不重复的城市(随机数).aspx.cs" Inherits="ProjectStudy.产生不重复的随机数" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
    <script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#btn").click(function () {
                
                //alert(str);
                $.ajax({
                    type: "POST",
                    url: "../Ajax/随机获取3个不重复的城市.ashx",
                    datatype: "json",
                    success: function (data) {

                        if (data != "") {
                            var s = data.replace('"', '');
                            s = s.replace('"', '');
                            $("#lab1").text(s);
                        }
                    }
                });

            });
        });

    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <input  type="button" id="btn" value="随机获取三个不重复的城市"/>
        <br />
        <br />
        <label id="lab1"></label>
    </div>
    </form>
</body>
</html>
